﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace PhilippHW
{
    class Program
    {
        static void Main(string[] args)
        {
            //StringBuilder SB = new StringBuilder("Hello World!");

            string s1 = "Hello";
            Console.WriteLine(s1);
            char[] ar = s1.ToCharArray();
            Array.Reverse(ar);
            s1 = new String(ar);

            Console.WriteLine(s1);
                           
            Console.ReadKey();
        }

        public static void Sort(ref StringBuilder input)
        {
            char temp;
            for (int i = 0; i < input.Length/2; i++)
            {
                for (int j = input.Length; j < input.Length / 2; j--)
                {
                   // if (input[i] != input[j])
                    //{
                        temp = input[i];
                        input[i] = input[j];
                        input[j] = temp;
                  //  }
                }
            }
        }



    }
}
